package com.leslie.wukong.biz.system.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * ClassName: SysUser
 * Package: com.leslie.wukong.biz.system.domain
 * Description:
 * @date: 2024/12/4 14:12
 * @author: itcoder
 */

@Schema
@Data
@TableName(value = "sys_user")
public class SysUser implements Serializable {
    /**
     * 用户id
     */
    @TableId(value = "user_id", type = IdType.INPUT)
    @Schema(description = "用户id")
    private String userId;

    /**
     * 用户账号
     */
    @TableField(value = "user_name")
    @Schema(description = "用户账号")
    private String userName;

    /**
     * 用户昵称
     */
    @TableField(value = "nick_name")
    @Schema(description = "用户昵称")
    private String nickName;

    /**
     * 用户邮箱
     */
    @TableField(value = "email")
    @Schema(description = "用户邮箱")
    private String email;

    /**
     * 手机号码
     */
    @TableField(value = "phone_number")
    @Schema(description = "手机号码")
    private String phoneNumber;

    /**
     * 用户性别
     */
    @TableField(value = "sex")
    @Schema(description = "用户性别")
    private Integer sex;

    /**
     * 用户头像
     */
    @TableField(value = "avatar")
    @Schema(description = "用户头像")
    private String avatar;

    /**
     * 用户密码
     */
    @TableField(value = "`password`")
    @Schema(description = "用户密码")
    private String password;

    /**
     * 账号状态(0正常 1停用)
     */
    @TableField(value = "`status`")
    @Schema(description = "账号状态(0正常 1停用)")
    private Integer status;

    /**
     * 最后登录ip
     */
    @TableField(value = "login_ip")
    @Schema(description = "最后登录ip")
    private String loginIp;

    /**
     * 最后登录时间
     */
    @TableField(value = "login_date")
    @Schema(description = "最后登录时间")
    private Date loginDate;

    /**
     * 备注
     */
    @TableField(value = "remark")
    @Schema(description = "备注")
    private String remark;

    /**
     * 创建人
     */
    @TableField(value = "create_by")
    @Schema(description = "创建人")
    private String createBy;

    /**
     * 创建人名称
     */
    @TableField(value = "create_by_name")
    @Schema(description = "创建人名称")
    private String createByName;

    /**
     * 修改人
     */
    @TableField(value = "update_by")
    @Schema(description = "修改人")
    private String updateBy;

    /**
     * 修改人名称
     */
    @TableField(value = "update_by_name")
    @Schema(description = "修改人名称")
    private String updateByName;

    /**
     * 删除标志(0正常 1删除)
     */
    @TableField(value = "del_flag")
    @Schema(description = "删除标志(0正常 1删除)")
    private Integer delFlag;


    /**
     * 登录时间
     */
    @TableField(exist = false)
    private Long loginTime;

    /**
     * 过期时间
     */
    @TableField(exist = false)
    private Long expireTime;

    /**
     * token
     */
    @TableField(exist = false)
    private String token;
    private static final long serialVersionUID = 1L;
}